﻿using Microsoft.AspNetCore.Mvc;

namespace GroupTwo_MVC.Controllers
{
    /// <summary>
    /// 物料管理
    /// </summary>
    public class MaterialsController : Controller
    {
        private readonly IConfiguration _configuration;

        public MaterialsController(IConfiguration configuration)
        {
            _configuration = configuration;
        }
        /// <summary>
        /// 物料分类添加显示
        /// </summary>
        /// <returns></returns>
        public IActionResult AddMaterialCategory()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }


        /// <summary>
        /// 物料基本档添加显示
        /// </summary>
        /// <returns></returns>
        public IActionResult AddMaterial_Basic()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
    }
}
